<?php 
class ArrowCtrlBrowserOption extends ArrowTagContainer{
	
	private $rootNode;
	/**
	 * Selected node
	 * @var TreeNode
	 */
	private $selectedNode = null;
	private $presenter;
	private $tree;
	private $typesMap = array();
	
	public function configure(){
		$this->addProperties(array(
			"type" => null,
			"validChildren" => "none"
		));
		$this->addRequiredProperties(array(
			"type"
		));
	
		$this->setDisplay(false);
		//$this->setContentCodeKept(true);
	}
	
	public function init(){
		
	
			
	}
	
	public function generateBlockStart(){
		$str = "";
		foreach( $this->getChildren() as $child){
			if($child->isDisplayed())
			$str.=$child->generate();
		}
		return $str;
		//return $this->generate();
	}
	
	public function generateBlockEnd(){
		return "";
	}
	
	public function generateJsOptions(){
		
		$arr = array();
		$children = $this->getProperty("validChildren");
		$arr["valid_children"] = explode(';', $children);
		return $arr;
	}
	
}
?>